package com.meteor.service;

import com.github.pagehelper.PageInfo;
import com.meteor.pojo.Book;
import com.meteor.pojo.BookDto;

import java.util.List;

public interface BookService {

    int insertBook(Book book);

    PageInfo<Book> selectBook(Integer pageNum,String bookName);

    List<Book> selectBookByTypeId(Integer typeId);

    Book selectBookById(Integer id);

    List<Book> selectBookRand();

    List<Book> selectBookByTime();

    List<Book> selectBookByMark();

    List<Book> selectBookBySell();

    List<BookDto> selectBookByBookIds(int[] array);

    Integer selectPrice(Integer[] arr);

    int updateCountByBookId(Book book);
}
